package com.huahang.fashionpress.exception;


import com.huahang.fashionpress.enums.ExceptionEnum;
import lombok.Data;

@Data
public class NotloginException extends RuntimeException{

    private Integer code;

    public NotloginException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMsg());
        this.code = exceptionEnum.getCode();
    }

    public NotloginException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
